package org.elec.mac.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.elec.mac.entity.SMachineMaterial;

import java.util.List;
import java.util.Map;

/**
 * @Description: 接口
 * @author 
 * @version 1.0
 * @created 
 */
@Mapper
public interface SMachineMaterialMapper extends BaseMapper<SMachineMaterial>{

    /**
     * 获取关联数据集合
     * @param param
     * @return
     */
    public List<Map<String, Object>> getMachineMaterialList(Map<String, Object> param);


    /**
     *
     * @param list
     */
    public void insertMachineMaterialBatch(List<SMachineMaterial> list);


    /**
     *
     * @param param
     * @return
     */
    public List<Long> getMachineMaterialIDList(Map<String, Object> param);


    /**
     * 批量删除机台原料mid
     * @param machid
     * @param list
     * @return
     */
    public int deleteMachineMaterial(@Param("machid")Long machid, @Param("list")List<Long> list);
}
